#region Using
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
#endregion Using

namespace CY.GFive.Core.Business
{
	public class StdCredentials : Business.BusinessBase<StdCredentials, int>
	{
		#region Fields and Properties

		private Boolean isMaken = default(Boolean);
		/// <summary>
		/// 
		/// </summary>
		public Boolean IsMaken
		{
			get { return isMaken; }
			set
			{
				if (value != isMaken)
				{
					MarkChanged("IsMaken");
					isMaken = value;
				}
			}
		}

		private Boolean isTaken = default(Boolean);
		/// <summary>
		/// 
		/// </summary>
		public Boolean IsTaken
		{
			get { return isTaken; }
			set
			{
				if (value != isTaken)
				{
					MarkChanged("IsTaken");
					isTaken = value;
				}
			}
		}

		private String credentialCate = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String CredentialCate
		{
			get { return credentialCate; }
			set
			{
				if (value != credentialCate)
				{
					MarkChanged("CredentialCate");
					credentialCate = value;
				}
			}
		}

		private String credentialCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String CredentialCode
		{
			get { return credentialCode; }
			set
			{
				if (value != credentialCode)
				{
					MarkChanged("CredentialCode");
					credentialCode = value;
				}
			}
		}

		private String projectCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String ProjectCode
		{
			get { return projectCode; }
			set
			{
				if (value != projectCode)
				{
					MarkChanged("ProjectCode");
					projectCode = value;
				}
			}
		}

		private String stdCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String StdCode
		{
			get { return stdCode; }
			set
			{
				if (value != stdCode)
				{
					MarkChanged("StdCode");
					stdCode = value;
				}
			}
		}

		#endregion Fields and Properties

		#region Constructors

		public StdCredentials()
		{
		}

		#endregion Constructors

		#region Base overrides

		protected override void ValidationRules()
		{
		}

		protected override StdCredentials DataSelect(int id)
		{
			return Services.DALService.StdCredentialsService.Select(id);
		}

		protected override void DataUpdate()
		{
			Services.DALService.StdCredentialsService.Update(this);
		}

		protected override void DataInsert()
		{
			Services.DALService.StdCredentialsService.Insert(this);
		}

		protected override void DataDelete()
		{
			Services.DALService.StdCredentialsService.Delete(this);
		}

		#endregion Base overrides
	}
}
